package sharewithus.business.dao;

import java.util.List;

/**
 * @ClassName: IRelationShipDAO
 * @Description:
 * @author chenyun
 * @date 2012-5-15 上午09:53:25
 */
public interface IRelationShipDAO {

	public void addRelationShipInCache(String uid, String follower)
			throws Exception;

	public void removeRelationShipInCache(String uid, String follower)
			throws Exception;

	public List<String> getFansFromCache(String uid) throws Exception;

	public List<String> getFansFromDB(String uid) throws Exception;

	public List<String> getFansFromCache(String uid, long startIndex,
			long endIndex) throws Exception;

	public List<String> getFollowersFromCache(String uid) throws Exception;

	public List<String> getFollowersFromDB(String uid) throws Exception;

	public List<String> getFollowersFromCache(String uid, long startIndex,
			long endIndex) throws Exception;

	public void putFollowers2Cache(String uid) throws Exception;

	public void putFans2Cache(String uid) throws Exception;

	public void putAddRSMsg2Queue(String uid, String follower) throws Exception;

	public void putRemoveRSMsg2Queue(String uid, String follower)
			throws Exception;

	public long getFansNum(String uid) throws Exception;

	public long getFollowersNum(String uid) throws Exception;
}
